﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IMDTO
{
    public class IMDTOAddress
    {
        public int idAddress { get; set; }
        public string Contact { get; set; }
        public string Street { get; set; }
        public int HouseNbr { get; set; }
        public string PostBox { get; set; }
        public string Zip { get; set; }
        public string City { get; set; }
        public string Country { get; set; }

        public IMDTOAddress()
        {
        }

        public IMDTOAddress(Address ad)
        {
            this.City = ad.City;
            this.Contact = ad.Contact;
            this.Country = ad.Country.ToString();
            this.HouseNbr = ad.HouseNbr;
            this.idAddress = ad.idAddress;
            this.PostBox = ad.PostBox;
            this.Street = ad.Street;
            this.Zip = ad.Zip;
        }
    }
}
